import { createStore } from "vuex";
import menu from './menu'

import createPersistedState from "vuex-persistedstate";


 export default createStore({
    modules:{
             menu
    },
    modules: { menu },
    plugins: [
      createPersistedState({
        paths: ["menu.routerList", "menu.selectMenu", "menu.isCollapse", "menu.menuActive"] // 持久化关键状态
      })
    ]
})